import requests


def robot_message_notification(webhook_url, data):
    """
    飞书机器人发送短信消息
    :params webhook_url 请求地址
    :params data 数据集合

    参数示例
    webhook_url = 'https://open.feishu.cn/open-apis/bot/v2/hook/231a6f32-58e7-4bf1-9e7b-7d9029b85b41'

    data = {
        "msg_type": "text",
        "content": {
            "text": "天刚最帅"
        }
    }
    """
    # 定义头部信息
    headers = {'Content-Type': 'application/json'}
    # 发送请求
    response = requests.post(webhook_url, headers=headers, json=data)
    # 返回对应的响应，根据状态码进行判断
    if response.status_code == 200:
        return {"status": True, "msg": "消息发送成功。"}
    else:
        return {"status": False, "msg": "消息发送失败。"}

